<div class="issue-list">
  <% articles.each do |i| %>
    <article class="issue clearfix">
      <div class="avatar">
        <%= link_to '#' do %>
          <%= image_tag i.user.avatar %>
        <% end %>
      </div>
      <div class="body">
        <h5 class="title">
          <%= link_to i.title, article_path(i) %>
        </h5>
        <a class="read-more" href="#">read</a>
        <span class="meta-data">
          <%= link_to i.user.nickname, '#' %>
          <%= time_ago_in_words(i.created_at) %>前
        </span>
      </div>
      <div class="issue-comment-count">
        <i class="fa fa-comments icon-muted"></i>
        <%= i.view_num.nil? ? 0 : i.view_num %>
      </div>
    </article>
  <% end %>
</div>